package com.wn.date20190806;
/**
 * 声明一个用户类
 * 姓名name,性别 gender，出生年月 birthdate
 * 
 * @author song
 *
 */
public class User
{
	private String name;
	private String gender;
	private String birthdate;
	// 构造
	public User(String name,String gender,String birthdate)
	{
		this.name=name;
		this.gender=gender;
		this.birthdate=birthdate;
	}
	public User()
	{
		this.name="noname";
		this.gender="nogender";
		this.birthdate="no";
	}
	public User(User u)
	{
		this.name=u.name;
		this.gender=u.gender;
		this.birthdate=u.birthdate;
	}
	public String getName()
	{
		return name;
	}
	public void setName(String name)
	{
		this.name = name;
	}
	public String getGender()
	{
		return gender;
	}
	public void setGender(String gender)
	{
		this.gender = gender;
	}
	public String getBirthdate()
	{
		return birthdate;
	}
	public void setBirthdate(String birthdate)
	{
		this.birthdate = birthdate;
	}
	
}
